/**
 * 
 */
package net.mikoo.seals.boss.biz.mapper.boss;

import org.mybatis.spring.annotation.MapperScan;

import net.mikoo.seals.boss.model.Person;


/**
 * @author huangxm
 *
 */
@MapperScan
public interface PersonMapper {
	
	/**
	 * 添加人员信息
	 * @param dictionary
	 * @return
	 */
	public Long insert(Person person);
	
	public Long updateByPrimaryKey(Person person);
	
	/**
	 * 查询人员信息
	 * @param dictionary
	 * @return
	 */
	public Person selectByPrimaryKey(String userLoginId);
	
	public Person selectByPartyId(Long partyId);
	
	public Integer updatePortrait(Person person);
	
	public Person selectByEmail(String email);
	
	public Person selectByMobile(String mobile);
	
	/**
	 * 删除当事人
	 * 
	 * @param partyId
	 * @return 删除结果
	 */
	public Integer deleteByPartyId(Long partyId);

	
	
}
